package com.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by asus on 2017/9/27.
 */
@Controller
public class ReportHandler {

    @RequestMapping("/report")
    public ModelAndView report(Integer roleId,String format) {
        Map<String, Object> model = new HashMap<String, Object>();
        model.put("format", format);
        model.put("roleId", roleId);
        return new ModelAndView("whCgMappingReport", model);
    }
}
